package com.ruoyi.rescheduling.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rescheduling.mapper.ReschedulingparameterMapper;
import com.ruoyi.rescheduling.domain.Reschedulingparameter;
import com.ruoyi.rescheduling.service.IReschedulingparameterService;

/**
 * 重调度模型参数配置Service业务层处理
 * 
 * @author wangming
 * @date 2024-01-27
 */
@Service
public class ReschedulingparameterServiceImpl implements IReschedulingparameterService 
{
    @Autowired
    private ReschedulingparameterMapper reschedulingparameterMapper;

    /**
     * 查询重调度模型参数配置
     * 
     * @param agentname 重调度模型参数配置主键
     * @return 重调度模型参数配置
     */
    @Override
    public Reschedulingparameter selectReschedulingparameterByAgentname(String agentname)
    {
        return reschedulingparameterMapper.selectReschedulingparameterByAgentname(agentname);
    }

    /**
     * 查询重调度模型参数配置列表
     * 
     * @param reschedulingparameter 重调度模型参数配置
     * @return 重调度模型参数配置
     */
    @Override
    public List<Reschedulingparameter> selectReschedulingparameterList(Reschedulingparameter reschedulingparameter)
    {
        return reschedulingparameterMapper.selectReschedulingparameterList(reschedulingparameter);
    }

    /**
     * 新增重调度模型参数配置
     * 
     * @param reschedulingparameter 重调度模型参数配置
     * @return 结果
     */
    @Override
    public int insertReschedulingparameter(Reschedulingparameter reschedulingparameter)
    {
        return reschedulingparameterMapper.insertReschedulingparameter(reschedulingparameter);
    }

    /**
     * 修改重调度模型参数配置
     * 
     * @param reschedulingparameter 重调度模型参数配置
     * @return 结果
     */
    @Override
    public int updateReschedulingparameter(Reschedulingparameter reschedulingparameter)
    {
        return reschedulingparameterMapper.updateReschedulingparameter(reschedulingparameter);
    }

    /**
     * 批量删除重调度模型参数配置
     * 
     * @param agentnames 需要删除的重调度模型参数配置主键
     * @return 结果
     */
    @Override
    public int deleteReschedulingparameterByAgentnames(String[] agentnames)
    {
        return reschedulingparameterMapper.deleteReschedulingparameterByAgentnames(agentnames);
    }

    /**
     * 删除重调度模型参数配置信息
     * 
     * @param agentname 重调度模型参数配置主键
     * @return 结果
     */
    @Override
    public int deleteReschedulingparameterByAgentname(String agentname)
    {
        return reschedulingparameterMapper.deleteReschedulingparameterByAgentname(agentname);
    }
}
